package io;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;

/**
 * @author krystal
 * @date 2022/11/27 8:44
 */
//读文件
public class Demo6 {
    public static void main(String[] args) throws IOException {
        InputStream inputStream=new FileInputStream("./bbb.txt");
        while (true){
            int b=inputStream.read();
            if (b==-1){
                break;
            }
            System.out.println(b);
        }
        inputStream.close();
    }
}
